#ifndef GETHIDDEVICE_H
#define GETHIDDEVICE_H

#include <windows.h>
extern "C"{
#include <hidsdi.h>
#include <devguid.h>
}
#include <setupapi.h>
#include <QDebug>

typedef struct
{
    unsigned int PID;
    unsigned int VID;
    HANDLE Device;
}HID_Device;
extern HID_Device hiddevice;

BOOL FindHidDevice(HID_Device *Device);

HID_Device GetDevice();

#endif // GETHIDDEVICE_H
